import request from '@/utils/request'

// 查询消息中心列表
export function listMessage_center(query) {
  return request({
    url: '/business/message_center/list',
    method: 'get',
    params: query
  })
}

// 查询消息中心详细
export function getMessage_center(messageId) {
  return request({
    url: '/business/message_center/' + messageId,
    method: 'get'
  })
}

// 新增消息中心
export function addMessage_center(data) {
  return request({
    url: '/business/message_center',
    method: 'post',
    data: data
  })
}

// 修改消息中心
export function updateMessage_center(data) {
  return request({
    url: '/business/message_center',
    method: 'put',
    data: data
  })
}

// 删除消息中心
export function delMessage_center(messageId) {
  return request({
    url: '/business/message_center/' + messageId,
    method: 'delete'
  })
}

// 导出消息中心
export function exportMessage_center(query) {
  return request({
    url: '/business/message_center/export',
    method: 'get',
    params: query
  })
}